import request from '@/utils/request'

export function listcheckplanHead(query) {
  return request({
    url: '/inspection/checkplanHead/list',
    method: 'get',
    params: query
  })
}

export function createcheckplanHead(data) {
  return request({
    url: '/inspection/checkplanHead/create',
    method: 'post',
    data
  })
}

export function readcheckplanHead(data) {
  return request({
    url: '/inspection/checkplanHead/get/' + data.id,
    method: 'get'
  })
}

export function updatecheckplanHead(data) {
  return request({
    url: '/inspection/checkplanHead/update',
    method: 'post',
    data
  })
}

export function deletecheckplanHead(data) {
  return request({
    url: '/inspection/checkplanHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
